package com.jkoss.dao.kc;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jkoss.pojo.kc.Course;
import com.jkoss.pojo.kc.CourseExample;
import com.jkoss.pojo.kc.Coursemodel;
import com.jkoss.tool.Page;
 

public interface CourseMapper {
    @Select("select * from t_course")
    @ResultMap("com.jkoss.dao.kc.CourseMapper.BaseResultMap")
	List<Course> listCou(Page<Course> page);
    
    @Select("select * from t_course where kcid=${kcid}")
    @ResultMap("com.jkoss.dao.kc.CourseMapper.BaseResultMap")
    Course findById(@Param("kcid") Integer kcid);
   
    @Select("select * from t_course")
    @ResultMap("com.jkoss.dao.kc.CourseMapper.BaseResultMap")
    List<Course> listByCou();
    
	int countByExample(CourseExample example);

    int deleteByExample(CourseExample example);

    int deleteByPrimaryKey(Integer kcid);

    int insert(Course record);

    int insertSelective(Course record);

    List<Course> selectByExample(CourseExample example);

    Course selectByPrimaryKey(Integer kcid);

    int updateByExampleSelective(@Param("record") Course record, @Param("example") CourseExample example);

    int updateByExample(@Param("record") Course record, @Param("example") CourseExample example);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

	

	

	

    
   
}